翻訳と辞書
Words near each other
・ Loop nest optimization
・ Loop of Henle
・ Loop optimization
・ Loop Parkway
・ Loop performance
・ Loop quantum cosmology
・ Loop quantum gravity
・ Loop recorder
・ Loop recording
・ Loop representation in gauge theories and quantum gravity
・ Loop Retail Historic District
・ Loop rock
・ Loop scheduling
・ Loop Service (Portland Streetcar)
・ Loop space
Loop splitting
・ Loop start
・ Loop subdivision surface
・ Loop the Loop (Coney Island)
・ Loop the Loop (Olentangy Park)
・ Loop the Loop (Young's Million Dollar Pier)
・ Loop theorem
・ Loop tiling
・ Loop unrolling
・ Loop unswitching
・ Loop v. Litchfield
・ Loop variant
・ Loop, Germany
・ Loop, Texas
・ Loop, West Virginia


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Loop splitting : ウィキペディア英語版
Loop splitting
Loop splitting is a compiler optimization technique. It attempts to simplify a loop or eliminate dependencies by breaking it into multiple loops which have the same bodies but iterate over different contiguous portions of the index range.
==Loop peeling==

Loop peeling is a special case of loop splitting which splits any problematic first (or last) few iterations from the loop and performs them outside of the loop body.
Suppose a loop was written like this:

int p = 10;
for (int i=0; i<10; ++i)


Notice that p = 10 only for the first iteration, and for all other iterations, p = i - 1. A compiler can take advantage of this by unwinding (or "peeling") the first iteration from the loop.
After peeling the first iteration, the code would look like this:

y() = x() + x();
for (int i=1; i<10; ++i)


This equivalent form eliminates the need for the variable p inside the loop body.
Loop peeling was introduced in gcc in version 3.4.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Loop splitting」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.